package com.yjc.drygoods.authServer.feign;

import com.yjc.common.utils.R;
import com.yjc.drygoods.authServer.vo.SocialVo;
import com.yjc.drygoods.authServer.vo.UserLoginVo;
import com.yjc.drygoods.authServer.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author yjc
 * @create 2022-09-18 10:08
 */
@FeignClient("drygoods-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R registMember(@RequestBody UserRegistVo userRegistVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("/member/member/oauth2.0/weibo/login")
    public R weiboLogin(@RequestBody SocialVo socialVo);
}
